{% extends "homebase.html" %}

{% block head %}
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>{% block title %}The MS-MBA Adventure!{% endblock %}</title>
		<link href="/stylesheets/home.css" rel="stylesheet" type="text/css" />
		<link href="/stylesheets/main.css" rel="stylesheet" type="text/css" />
		<link href='http://fonts.googleapis.com/css?family=Ropa+Sans:400,400italic' rel='stylesheet' type='text/css'>
{% endblock head %}

{% block content %}
	<div class="content" id="wrapper">
		<div class="room_image" id="scene">
		{% if room.get_image %}
		<img src="images/{{room.get_image}}"/>
		{% endif %}
		</div>
		
		{% if cutscene %}
		<div class="cutscene">
		<p>{{cutscene}}</p>
		</div>
		{% endif %}
		
		<div class="room_description">
		<p>{{room.get_description}}</p>
		</div>
			
		<div id="inventory">	
			<div class="room_inventory" id="roominventory">
			<h3>{ Home }</h3>
			{% if room.inventory %}
			<p>You see some stuff in this room:</p>
			<form action="{{this_page}}" method="post">
			{% for item in room.inventory.values %}
			<div><input type="checkbox" name="room_inventory" value="{{item.get_id}}"/>{{item.get_description}}</div>
			{% endfor %}
			<div><input type="submit" name="inventory" value="Take item(s)"/></div>
			</form>
			{% else %}
			<p>You don't see anything interesting lying around.</p>
			{% endif %}
			</div>
			
			<div class="player_inventory" id="playerinventory">
			<h3>{ Backpack }</h3>
			{% if player.inventory %}
			<form action="{{this_page}}" method="post">
			{% for item in player.inventory.values %}
			<div><input type="checkbox" name="player_inventory" value="{{item.get_id}}"/>{{item.get_description}}</div>
			{% endfor %}
			<div><input type="submit" name="inventory" value="Drop item(s)"/></div>
			</form>
			{% else %}
			<p>You are not carrying anything.</p>
			{% endif %}
			</div>
			
			<div class="actions" id="actions">
			<h3>{ Actions }</h3>
			{% for action in menu.actions.values %}
			<div class="action_form">
			<form action="{{this_page}}" method="{{action.get_method}}">
			      <input type="hidden" name="action_name" value="{{action.get_id}}" />
			      <input type="submit" name="action" value="{{action.get_description}}"/>
			</form>
			</div>
			{% endfor %}
			</div> <!-- End actions div -->
		</div> <!-- End inventory div -->
	</div> <!-- End content div -->
{% endblock content %}

{% block footer %}
	<div class="footer">
		<p>&nbsp;</p>
	</div>
{% endblock footer %}
